﻿@* Ui层项目文件 *@
@using Util.Generators.Helpers
@using Version = Util.Generators.Helpers.Version
@model Util.Generators.Contexts.EntityContext
@{
    var service = new GenerateService( Model );
    var projectName = service.GetUiProjectName();
    var application = service.GetApplicationProjectName();
    Model.Output.FileNameNoExtension = projectName;
    Model.Output.Extension = ".csproj";
    Model.Output.RelativeRootPath = $"src/{projectName}";
}
<Project Sdk="Microsoft.NET.Sdk.Web">

	<PropertyGroup>
		<TargetFramework>$(NetTargetFramework)</TargetFramework>
		<RootNamespace>@service.ProjectName</RootNamespace>
		<ImplicitUsings>enable</ImplicitUsings>
		<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
		<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
		<IsPackable>false</IsPackable>
	</PropertyGroup>

    <ItemGroup>
        <PackageReference Include="Microsoft.TypeScript.MSBuild" Version="@Version.TypeScriptMsBuild">
            <PrivateAssets>all</PrivateAssets>
            <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
        </PackageReference>
        <PackageReference Include="Util.Logging.Serilog.Exceptionless" Version="@Version.Util"/>
        <PackageReference Include="Util.Ui.NgAlain" Version="@Version.Util"/>
        <PackageReference Include="Util.Ui.NgZorro" Version="@Version.Util"/>
    </ItemGroup>

    <ItemGroup>
        <Compile Remove="ClientApp\node_modules\**" />
        <Content Remove="ClientApp\node_modules\**" />
        <EmbeddedResource Remove="ClientApp\node_modules\**" />
        <TypeScriptCompile Remove="ClientApp\node_modules\**" />
        <None Remove="ClientApp\.angular\**" />
        <None Remove="ClientApp\dist\**" />
        <None Remove="ClientApp\.eslintignore" />
        <None Remove="ClientApp\.eslintrc.js" />
        <None Remove="ClientApp\.gitignore" />
        <None Remove="ClientApp\.npmignore" />
        <None Remove="ClientApp\.nvmrc" />
        <None Remove="ClientApp\.prettierignore" />
        <None Remove="ClientApp\.prettierrc.js" />
        <None Remove="ClientApp\.stylelintrc" />
        <None Remove="ClientApp\yarn.lock" />
        <None Remove="ClientApp\clear-node-modules.ps1" />
        <None Remove="ClientApp\start.ps1" />
    </ItemGroup>
	
    <ItemGroup>
		<ProjectReference Include="..\@application\@(application).csproj" />
    </ItemGroup>
</Project>